/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const employeeRouter = {
  path: '/employee',
  component: Layout,
  name: 'employee',
  meta: {
    title: '员工管理',
    icon: 'component'
  },
  children: [
    {
      path: 'staff',
      component: () => import('@/views/employee/staff/index.vue'),
      name: 'staff',
      meta: { title: '员工列表' }
    },
    {
      path: 'role',
      component: () => import('@/views/employee/role/index.vue'),
      name: 'role',
      meta: { title: '角色管理' }
    }
  ]
}

export default employeeRouter
